{layout name="common/layout"}
<div class="t_tit_x">
    <div class="t_tit_x1"><img src="{$data.avatar|cdnurl}" width="86" height="86"/></div>

    <div class="t_tit_x2">
        <h3>{$data.nickname}</h3><h6>{$data.createtime|human_date}</h6>
        <p>{$data.title}</p>
        {if $data.status eq 1}
        <span>已解决</span>
        {else /}
        <span>待解决</span>
        {/if}
    </div>

    <div class="t_tit_an"><a href="/addons/shop/inquiry/list_qt">看别人咨询付费</a></div>
    <div class="clearit"></div>

</div>

<div class="t_nei">
    <div class="t_nei_tit">{$data.title}</div>
    <div class="t_nei_tit_s">
        <div style="display: flex;flex-wrap:wrap;justify-content: center;">
            {foreach $data['images'] as $v}
            <img src="{$v}" alt="" width="300" style="margin: 10px;" class="js-img">
            {/foreach}
            <script>
                $('.js-img').on('click', function (e) {
                    var img = new Image();
                    img.onload = function () {
                        var $content = $(img).appendTo('body').css({background: '#fff', width: 700, height: 'auto'});
                        layer.open({
                            type: 1,
                            area: 700,
                            title: false,
                            closeBtn: 1,
                            content: $content,
                            end: function () {
                                $(img).remove();
                            },
                        });
                    };
                    img.src = this.src;
                })
            </script>
        </div>
        <p>{$data.info}</p>
    </div>
</div>

<div class="t_ping">
    <div class="t_ping_1">
        <span>回复:</span>
        <p>{$data.re_info}</p>
    </div>
</div>
